package com.eastfair.pay.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 交易记录
 * </p>
 *
 * @author clm
 * @since 2023-02-13
 */
@Data
@ApiModel(value = "TransactionUpdateDTO", description = "交易记录")
public class TransactionDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 单号
     */
    @ApiModelProperty(value = "单号")
    @Size(max = 255, message = "单号长度不能超过255")
    private String transactionNum;
    /**
     * 展会名称
     */
    @ApiModelProperty(value = "展会名称")
    @Size(max = 255, message = "展会名称长度不能超过255")
    private String exhibitionName;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    private Long exhibitionId;
    /**
     * 展厅
     */
    @ApiModelProperty(value = "展厅")
    @Size(max = 255, message = "展厅长度不能超过255")
    private String spaceName;
    /**
     * 展位
     */
    @ApiModelProperty(value = "展位")
    @Size(max = 255, message = "展位长度不能超过255")
    private String siteName;
    /**
     * 服务商类型
     */
    @ApiModelProperty(value = "服务商类型")
    @Size(max = 255, message = "服务商类型长度不能超过255")
    private String serviceProviderType;
    /**
     * 服务商名称
     */
    @ApiModelProperty(value = "服务商名称")
    @Size(max = 255, message = "服务商名称长度不能超过255")
    private String serviceProviderName;
    /**
     * 服务商id
     */
    @ApiModelProperty(value = "服务商id")
    private Long serviceProviderId;
    /**
     * 业务类型(订单，结算单)
     */
    @ApiModelProperty(value = "业务类型(订单，结算单)")
    @Size(max = 255, message = "业务类型(订单，结算单)长度不能超过255")
    private String orderType;
    /**
     * 单号
     */
    @ApiModelProperty(value = "单号")
    @Size(max = 255, message = "单号长度不能超过255")
    private String orderNum;
    /**
     * 单额
     */
    @ApiModelProperty(value = "单额")
    private BigDecimal orderAmount;
    /**
     * 交易时间
     */
    @ApiModelProperty(value = "交易时间")
    private LocalDateTime orderTime;
    /**
     * 交易类型(付款，退款)
     */
    @ApiModelProperty(value = "交易类型(付款，退款)")
    @Size(max = 255, message = "交易类型(付款，退款)长度不能超过255")
    private String transactionType;
    /**
     * 付款方
     */
    @ApiModelProperty(value = "付款方")
    @Size(max = 255, message = "付款方长度不能超过255")
    private String payer;
    /**
     * 付款方式
     */
    @ApiModelProperty(value = "付款方式")
    @Size(max = 255, message = "付款方式长度不能超过255")
    private String payType;
    /**
     * 交易状态
     */
    @ApiModelProperty(value = "交易状态")
    @Size(max = 255, message = "交易状态长度不能超过255")
    private String transactionState;
    /**
     * 系统标识
     */
    @ApiModelProperty(value = "系统标识")
    @Size(max = 255, message = "系统标识长度不能超过255")
    private String systemScene;
    /**
     * 收款单位
     */
    @ApiModelProperty(value = "收款单位")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "收款单位长度不能超过255")
    private String payee;
    /**
     * 收款单位主键
     */
    @ApiModelProperty(value = "收款单位主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long payeeId;
    /**
     * 订单状态
     */
    @ApiModelProperty(value = "订单状态")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "订单状态长度不能超过255")
    private String orderStatus;
    /**
     * 交易金额
     */
    @ApiModelProperty(value = "交易金额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal transtionAmount;
    /**
     * 交易时间
     */
    @ApiModelProperty(value = "交易时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private LocalDateTime transtionTime;
    /**
     * 流水号
     */
    @ApiModelProperty(value = "流水号")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "流水号长度不能超过255")
    private String serialNumber;
    /**
     * 支付渠道
     */
    @ApiModelProperty(value = "支付渠道")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "支付渠道长度不能超过255")
    private String paymentChannel;
    /**
     * 制单状态
     */
    @ApiModelProperty(value = "制单状态")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "制单状态长度不能超过255")
    private String voucherStatus;
    /**
     * 制单流水号
     */
    @ApiModelProperty(value = "制单流水号")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String voucherSerialNumber;
}
